import request from './request'

export function getSubmissionList(params) {
  return request({
    url: '/api/submissions/page',
    method: 'get',
    params
  })
}

export function submitCode(data) {
  return request({
    url: '/api/submissions/submit',
    method: 'post',
    data
  })
}